package com.charley.icloud.common.response.code;

/**
 * admin-center 系统管理模块的错误码
 * 区间：10000 - 15999
 * */
public interface BackAdminSysCode {
    /**
     * 系统全局通用响应状态码
     * */
    String ICLOUD_SYSTEM_SUCCESS_CODE = "000000";  //成功状态码
    String ICLOUD_SYSTEM_SUCCESS_MSG = "响应成功";  //成功返回信息

    String ICLOUD_SYSTEM_ERROR_CODE = "000001";  //失败状态码
    String ICLOUD_SYSTEM_ERROR_MSG = "响应失败";  //失败返回信息

    /**
     * 错误 提示 警告
     * */
    // 用户管理 10000 - 10999
    // 10000 - 10499 错误的提示
    String SYSTEM_USER_ERROR_SAVE_FAIL = "10000";
    String SYSTEM_USER_ERROR_SAVE_FAIL_MSG = "保存操作失败";
    String SYSTEM_USER_ERROR_REGISTER_FAIL_MSG = "用户注册失败";

    String SYSTEM_USER_ERROR_ADD_FAIL_PARAM_NULL = "10001";
    String SYSTEM_USER_ERROR_ADD_FAIL_PARAM_NULL_MSG = "参数为NULL";

    String SYSTEM_USER_ERROR_ADD_FAIL_NAME_NULL = "10002";
    String SYSTEM_USER_ERROR_ADD_FAIL_NAME_NULL_MSG = "用户名为空";
    String SYSTEM_USER_ERROR_ADD_FAIL_ACCOUNT_NULL = "10003";
    String SYSTEM_USER_ERROR_ADD_FAIL_PASSWORD_NULL = "10004";
    String SYSTEM_USER_ERROR_ADD_FAIL_PHONE_NULL = "10005";
    String SYSTEM_USER_ERROR_ADD_FAIL_NAME_SIZE = "10006";
    String SYSTEM_USER_ERROR_ADD_FAIL_ACCOUNT_SIZE = "10007";
    String SYSTEM_USER_ERROR_ADD_FAIL_PASSWORD_SIZE = "10008";

    String SYSTEM_USER_ERROR_DEL_FAIL_UID_NULL = "10020";

    String SYSTEM_USER_ERROR_UPDATE_FAIL_PARAM_NULL = "10060"; // 更新用户信息的时候信息为null
    String SYSTEM_USER_ERROR_UPDATE_FAIL_UID_NULL = "10061"; // id没传
    String SYSTEM_USER_ERROR_UPDATE_FAIL = "10062"; // 修改失败

    // 10500-10999 成功的提示
    String SYSTEM_USER_SUCCESS_SAVE = "10500";
    String SYSTEM_USER_SUCCESS_SAVE_MSG = "保存操作成功";


    // 角色管理 11000 - 11999
    // 10000 - 10499 错误的提示
    String SYSTEM_ROLE_ERROR_ADD_FAIL = "11000";


    // 权限管理  12000 - 12999
}
